// 提供调用category相关接口的方法
import request from "./request";

// 查询所有的分类
export const findAllCategory = () => request.get('/category/findAll')


//删除
export const deleteCategory = (id) => request.get('/category/delete?id='+id)

//增加分类
export const addCategory = (data) => request.post("/category/addCategory",data)

//编辑
export const updateCategory = (data) => request.post("/category/update",data)